/*
 * @Author: zjf
 * @Date: 2023-11-28 21:21:25
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-01 17:56:46
 * @Description: 单位
 */
export const formColmuns = [
    { label: '统一社会信用代码', prop: 'socialNumber', dataType: 'input', },
    { label: '单位名称', prop: 'enterpriseName', dataType: 'input', },
    { label: '单位类型', prop: 'enterpriseType', dataType: 'dataItem', dataCode: 'unitType' },
]


export const tableColmuns = [
    { label: '统一社会信用代码', prop: 'socialNumber', minWidth: 140, dataType: 'input', isNotAutoWrap: true },
    { label: '单位名称', prop: 'enterpriseName', minWidth: 140, dataType: 'input', isNotAutoWrap: true },
    { label: '单位类型', prop: 'enterpriseType', minWidth: 140, dataType: 'dataItem', dataCode: 'unitType' },
    { label: '创建时间', prop: 'createTime', minWidth: 140, dataType: 'datetime', format: 'yyyy-MM-dd', },
]

export const formData = {
    socialNumber: "",       // 统一社会信用代码
    enterpriseName: "",     // 单位名称
    enterpriseType: "",     // 单位类型
};

export const rules = {

};

const api = window.$crud("ent");


let config = {
    api: api,
    formColmuns: formColmuns,
    tableColmuns: tableColmuns,
    formData: formData,
    rules: rules,
};

export default config;